const mongoose = require('mongoose')

const { Schema, model } = mongoose

//homeText模型
const bookBackSchema = new Schema({
    __v: {
        type: Number,
        select: false,
    },
    name: { //文字
        type: String,
        default: '书籍背景图',
        select: false,
    },
    img: {
        type: String,
        required: true,
    }
})

module.exports = model('bookBack', bookBackSchema)
